package gui;


import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;


public class Controller {
	private View myView;

	Controller(View view) {
		myView = view;
		myView.setController(this);
		addListeners();
	}

	/*
	 * Method adds all listeners to item in View. Listeners only need
	 * to be readded when the Calculator changes. Also the 
	 */
	public void addListeners() {
		myView.addRunListener(new RunListener());
	}


	/*
	 * Resets the TextFields of each GUI parameter to their default values if
	 * the reset button is pressed
	 */
	class RunListener implements ActionListener {
		public void actionPerformed(ActionEvent e) {
			System.out.println("running");
		}
	}
	


}
